<?php

return [
    // 默认磁盘
    'default' => env('filesystem.driver', 'aliyun'),
    // 磁盘列表
    'disks'   => [
        'local'  => [
            'type' => 'local',
            'root' => app()->getRuntimePath() . 'storage',
        ],
        'public' => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => app()->getRootPath() . 'public/uploads',
            // 磁盘路径对应的外部URL路径
            'url'        => '/storage',
            // 可见性
            'visibility' => 'public',
        ],
        // 更多的磁盘配置信息
        'aliyun' => [
            'type'         => 'aliyun',
            'accessId'     => env('oss.accessid','LTAI4FzBkECsu37muCVZz4o8'),
            'accessSecret' => env('oss.accesssecret','DHjLn62lVfQVI4YyM2W1V1QeCiYx9j'),
            'bucket'       => env('oss.bucket','yaonimei'),
            'endpoint'     => env('oss.endpoint','oss-cn-hangzhou.aliyuncs.com'),
            'url'          => 'https://'.env('oss.endpoint','oss-cn-hangzhou.aliyuncs.com'),
        ],
    ],
];
